<template>
    <view>
        <status-bar title='公告详情' :goHome='fromShare'></status-bar>
        <view class="padding30">
            <view class="size46 color_22 p-bot20">{{pageData.title}}</view>
            <view class="size26 color_99">{{pageData.addDate}}</view>
            <view class="m-top40">
				<u-parse :content="pageData.details" :domain="imgUrl" :scrollTable="true" :selectable="true" :useAnchor="true"></u-parse>
			</view>
        </view>
    </view>
</template>

<script>
export default {
    data(){
        return {
            fromShare: 0,
            imgUrl: this.imgUrl,
            log_id: '',
            pageData: ''
        }
    },
    onLoad(e){
        if(e.fromShare) this.fromShare = e.fromShare
        if(e.log_id) this.log_id = e.log_id
        this.getDetail()
    },
    methods: {
        getDetail(){
            this.$http.post({
                url: '/osmxcxApi/getTradeLog',
                data: {
                    log_id: this.log_id
                }
            }).then(res=>{
                if(res.errcode != 100) return this.$Toast(res.msg)
                this.pageData = res.data
            })
        }
    }
}
</script>

<style lang="scss" scoped>

</style>